using System;
using System.Configuration;
using System.Xml;

namespace AssemblyBinder
{
	/// <summary>
	/// Summary description for ConfigHandler.
	/// </summary>
	public class ConfigHandler : IConfigurationSectionHandler
	{
		public ConfigHandler()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		///<summary>
		///
		///<para>
		/// Implemented by all configuration section handlers to
		///      parse the XML of the configuration section. The returned object is added to the
		///      configuration collection and is accessed by <see cref="M:System.Configuration.ConfigurationSettings.GetConfig(System.String)" /> .
		///      
		///</para>
		///
		///</summary>
		///
		///<param name="parent">The configuration settings in a corresponding parent configuration section. </param>
		///<param name="configContext">An <see cref="T:System.Web.Configuration.HttpConfigurationContext" /> when <see cref="M:System.Configuration.IConfigurationSectionHandler.Create(System.Object,System.Object,System.Xml.XmlNode)" /> is called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is <see langword="null" /> . </param>
		///<param name="section">The <see cref="T:System.Xml.XmlNode" /> that contains the configuration information from the configuration file. Provides direct access to the XML contents of the configuration section. </param>
		///<returns>
		///
		///<para>
		///A configuration object.
		///</para>
		///
		///</returns>
		///
		public object Create(object parent, object configContext, XmlNode section)
		{
			return section;
		}
	}
}
